<div class="view">
	
<a href="view/<?php echo $data->id;?>">

<?php 
	$photo = Utils::getTeamPhoto($data);
?>

	<table> <tr> <td>
		<?php echo CHtml::image(Utils::findImageUrl($photo[0]->filename),$data->name,array('width'=>100,'height'=>60)); ?>
	</td><td><h3 align="center" style="width:380px; color: black; text-shadow: 3px 3px #000; "> <?php echo $data->name;?></h3></td> 
	<?php if(strtoupper($data->status) == strtoupper("EM APROVAÇÃO")) {
		echo '<td><h5 align="right" style="color:orange;">'.$data->status.'</h5></td>';
	} ?>
	</tr> </table>
	<table style="color:black">
	<tr>
	<td><?php echo 'Dono'; ?>:</td>
	<td <?php if($data->owner->name == $_SESSION['owner']->name){echo 'style="color: green; font-weight: bold;"';}?>><?php echo CHtml::encode($data->owner->name); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('official_name')); ?>:</td>
	<td><?php echo CHtml::encode($data->official_name); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('state')); ?>:</td>
	<td><?php echo CHtml::encode($data->state); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('city')); ?>:</td>
	<td><?php echo CHtml::encode($data->city); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('country')); ?>:</td>
	<td><?php echo CHtml::encode($data->country); ?></td>
	</tr>

	<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('street')); ?>:</b>
	<?php echo CHtml::encode($data->street); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('number')); ?>:</b>
	<?php echo CHtml::encode($data->number); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('complement')); ?>:</b>
	<?php echo CHtml::encode($data->complement); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('neighborhood')); ?>:</b>
	<?php echo CHtml::encode($data->neighborhood); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('cep')); ?>:</b>
	<?php echo CHtml::encode($data->cep); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('phone')); ?>:</b>
	<?php echo CHtml::encode($data->phone); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('fax')); ?>:</b>
	<?php echo CHtml::encode($data->fax); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('site')); ?>:</b>
	<?php echo CHtml::encode($data->site); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('email')); ?>:</b>
	<?php echo CHtml::encode($data->email); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('cnpjl')); ?>:</b>
	<?php echo CHtml::encode($data->cnpjl); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('insertion_date')); ?>:</b>
	<?php echo CHtml::encode($data->insertion_date); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('federation')); ?>:</b>
	<?php echo CHtml::encode($data->federation); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('mandato')); ?>:</b>
	<?php echo CHtml::encode($data->mandato); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('agency')); ?>:</b>
	<?php echo CHtml::encode($data->agency); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('account')); ?>:</b>
	<?php echo CHtml::encode($data->account); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('bank')); ?>:</b>
	<?php echo CHtml::encode($data->bank); ?>
	<br />
	*/ ?>
	</table>
	</a>
</div>